package com.admin.service;

import com.admin.entity.Apk;
import com.admin.entity.SystemApk;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author marisheng
 * @since 2019-11-21
 */
public interface ISystemApkService extends IService<SystemApk> {
    //查询系统apk升级包同时搜索应用名称
    public IPage SearchSystemApk(int page, int limit, String apkName);

    /**
     * 查询所有系统apk并分页
     * @param page
     * @param limit
     * @param systemApkName
     * @return
     */
    public IPage searchSystemApkWithPage(int page, int limit, String systemApkName);

    /**
     * 新增系统apk应用
     * @param systemApk
     * @return
     */
    public int addSystemApk(SystemApk systemApk);


    /**
     * 查询MD5判断应用是否重复
     * @param systemApkMd5
     * @return
     */
    public SystemApk selectSystemApkMd5AndApkAdmin (String systemApkMd5);
}
